﻿#include "localDev.h"
#include <QDebug>

LocalDev::LocalDev(void)
{
    memset(&m_cmd, 0, sizeof(localCmd_t));
    memset(&m_dns, 0, sizeof(localDna_t));
    memset(&m_motorSet, 0, sizeof(motorSetValue_t) * 2);
}


int LocalDev::busID() const
{
    return m_busID;
}

void LocalDev::setBusID(int busID)
{
    m_busID = busID;
}

int LocalDev::offset() const
{
    return m_offset;
}

void LocalDev::setOffset(int offset)
{
    m_offset = offset;
}

QString LocalDev::hwVer() const
{
    return m_hwVer;
}

void LocalDev::setHwVer(const QString &hwVer)
{
    m_hwVer = hwVer;
}

QString LocalDev::swVer() const
{
    return m_swVer;
}

void LocalDev::setSwVer(const QString &swVer)
{
    m_swVer = swVer;
}

QString LocalDev::uid() const
{
    return m_uid;
}

void LocalDev::setUid(const QString &uid)
{
    m_uid = uid;
}

QString LocalDev::swbTime() const
{
    return m_swbTime;
}

void LocalDev::setSwbTime(const QString &swbTime)
{
    m_swbTime = swbTime;
}

int LocalDev::row() const
{
    return m_row;
}

void LocalDev::setRow(int row)
{
    m_row = row;
}

int LocalDev::col() const
{
    return m_col;
}

void LocalDev::setCol(int col)
{
    m_col = col;
}

int LocalDev::sector() const
{
    return m_sector;
}

void LocalDev::setSector(int sector)
{
    m_sector = sector;
}

int LocalDev::hcdi() const
{
    return m_hcdi;
}

void LocalDev::setHcdi(int hcdi)
{
    m_hcdi = hcdi;
}

double LocalDev::getLongitude() const
{
    return longitude;
}

void LocalDev::setLongitude(double value)
{
    longitude = value;
}

double LocalDev::getLatitude() const
{
    return latitude;
}

void LocalDev::setLatitude(double value)
{
    latitude = value;
}

double LocalDev::getAltitude() const
{
    return altitude;
}

void LocalDev::setAltitude(double value)
{
    altitude = value;
}

Hmi LocalDev::getHmi() const
{
    return m_hmi;
}

void LocalDev::setHmi(const Hmi &hmi)
{
    m_hmi = hmi;
}

int LocalDev::getBaudrate() const
{
    return m_baudrate;
}

void LocalDev::setBaudrate(int baudrate)
{
    m_baudrate = baudrate;
}

int LocalDev::getLogLevel() const
{
    return m_logLevel;
}

void LocalDev::setLogLevel(int logLevel)
{
    m_logLevel = logLevel;
}

QString LocalDev::getSn() const
{
    return m_sn;
}

void LocalDev::setSn(const QString &sn)
{
    m_sn = sn;
}

QString LocalDev::getSMAddr() const
{
    return m_sMAddr;
}

void LocalDev::setSMAddr(const QString &sMAddr)
{
    m_sMAddr = sMAddr;
}

QString LocalDev::getMAddr() const
{
    return m_mAddr;
}

void LocalDev::setMAddr(const QString &mAddr)
{
    m_mAddr = mAddr;
}

localCmd_t LocalDev::getCmd() const
{
    return m_cmd;
}

void LocalDev::setCmd(const localCmd_t &cmd)
{
    m_cmd = cmd;
}

localDna_t LocalDev::getDna() const
{
    return m_dns;
}

void LocalDev::setDna(const localDna_t &dns)
{
    m_dns = dns;
}

